﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Receiving.aspx.cs" Inherits="RLRT.Web.Receiving" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>一般、外包收货</title>
</head>
<body>
    <form id="form1" runat="server">
        <div class="Page">
            <div class="Title">
                <asp:Label ID="PageTitle" runat="server" Text="一般收货"></asp:Label>
            </div>
            <div class="Operating">
                <ul>
                    <li class="Caption">工令号
                    </li>
                    <li class="Content">
                        <asp:DropDownList ID="ORDNO" runat="server"></asp:DropDownList>
                    </li>
                    <li class="Caption">仓库
                    </li>
                    <li class="Content">
                        <asp:DropDownList ID="WhCode" runat="server" CssClass="Required"></asp:DropDownList>
                    </li>
                    <%--  <li class="ContentMiddle">
                        <asp:Label ID="WhDesc" runat="server" Text=""></asp:Label>
                    </li>--%>
                    <li class="LineFeed"></li>
                    <li class="Caption">厂商代码
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="VenNo" runat="server" CssClass="Required"></asp:TextBox><asp:LinkButton ID="selVendor" Style="display: inline-block;" runat="server" CssClass="ImageButton ImageButtonDetail" ToolTip="选择厂商"></asp:LinkButton>
                    </li>
                    <li class="Caption">厂商名称
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="VenName" runat="server" CssClass=""></asp:TextBox>
                    </li>
                    <li class="LineFeed"></li>
                    <li class="Caption">送货单号
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="ShipNo" runat="server" CssClass="Required"></asp:TextBox>
                    </li>
                    <%--   <li class="Caption">币别
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="Curr" runat="server" CssClass=""></asp:TextBox>
                    </li>--%>

                    <li class="Caption">收货单号
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="RTNo" runat="server" CssClass=""></asp:TextBox>
                    </li>
                    <li class="LineFeed"></li>
                    <li class="Caption">
                        <asp:CheckBox ID="chkPrint" runat="server" Text="打印收货单" /></li>
                    <li class="Content"></li>
                    <li class="LineFeed"></li>
                    <li class="Button">
                        <asp:Button ID="OKButton" runat="server" Text="查询"
                            OnClick="OKButton_Click" />
                        <asp:Button ID="CancelButton" runat="server" Text="取消"
                            OnClick="CancelButton_Click" />
                        <asp:Button ID="CreateButton" runat="server" Text="<%$ Resources:iiWeb, CreateButton %>"
                            CssClass="Highlighted" OnClick="CreateButton_Click" />
                        <asp:Button ID="DeleteButton" runat="server" Text="<%$ Resources:iiWeb, DeleteButton %>"
                            CssClass="Highlighted" OnClick="DeleteButton_Click" />
                        <asp:Button ID="SaveButton" runat="server" Text="保存"
                            CssClass="Highlighted" OnClick="SaveButton_Click" />
                    </li>
                </ul>
            </div>

            <div class="List">
                <%--               <asp:Label ID="Label1" runat="server" Text="工令BOM明细" Font-Bold="True" Font-Size="15px" ForeColor="Red"></asp:Label>--%>
                <asp:GridView ID="List" runat="server" EmptyDataText="<%$ Resources:iiWeb, EmptyData %>" AllowPaging="false"
                    EnableModelValidation="True" DataKeyNames="prlseq" OnRowDataBound="List_RowDataBound">
                    <Columns>
                        <asp:TemplateField HeaderText="勾选">
                            <%--<HeaderTemplate>
                                <input type="checkbox" id="RowCheckAll" runat="server" class="CheckAll" title="勾选" />
                            </HeaderTemplate>--%>
                            <ItemTemplate>
                                <input type="checkbox" id="RowCheck" runat="server" class="Check" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="prlno" HeaderText="订单号码" />
                        <asp:BoundField DataField="prlseq" HeaderText="序号" />
                        <asp:BoundField DataField="prlsord" HeaderText="工令号" />
                        <asp:BoundField DataField="prltno" HeaderText="工件号" />
                        <asp:BoundField DataField="bomnam" HeaderText="工件名称" />
                        <asp:BoundField DataField="bommat" HeaderText="材质" />
                        <asp:BoundField DataField="prlstation" HeaderText="工站" />
                        <asp:BoundField DataField="prlum" HeaderText="单位" />
                        <asp:BoundField DataField="prlqty" HeaderText="订单数量" />
                        <asp:BoundField DataField="openqty" HeaderText="待交货数量" />
                        <asp:BoundField DataField="prlrdte" HeaderText="订单日期" />
                        <asp:BoundField DataField="prlpdte" HeaderText="交货期限" />
                    </Columns>
                </asp:GridView>
            </div>
            <div class="List">
                <asp:Label ID="DetailLabel" runat="server" Text="收货清单" Font-Bold="True" Font-Size="15px" ForeColor="Red"></asp:Label>
                <asp:GridView ID="RTList" runat="server" EmptyDataText="<%$ Resources:iiWeb, EmptyData %>" AllowPaging="false"
                    EnableModelValidation="True" DataKeyNames="prlseq" OnRowDataBound="RTList_RowDataBound">
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <input type="checkbox" id="RowCheckAll" runat="server" class="CheckAll" title="勾选" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <input type="checkbox" id="RowCheck" runat="server" class="Check" title="勾选" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <%--  <asp:TemplateField HeaderText="序号" HeaderStyle-Width="5%">
                            <ItemTemplate>
                                <asp:Label ID="SEQ" runat="server" Text="<%# Container.DataItemIndex +1%>"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>--%>
                        <asp:BoundField DataField="prlno" HeaderText="订单号码" />
                        <asp:BoundField DataField="prlseq" HeaderText="序号" />
                        <asp:BoundField DataField="prlsord" HeaderText="工令号" />
                        <asp:BoundField DataField="prltno" HeaderText="工件号" />
                        <asp:BoundField DataField="bomnam" HeaderText="工件名称" />
                        <asp:BoundField DataField="bommat" HeaderText="材质" />
                        <asp:BoundField DataField="prlstation" HeaderText="工站" />
                        <asp:BoundField DataField="prlum" HeaderText="单位" />
                        <asp:BoundField DataField="prlqty" HeaderText="订单数量" />
                        <asp:BoundField DataField="openqty" HeaderText="待交货数量" />
                        <asp:TemplateField HeaderText="本次收货数量">
                            <ItemTemplate>
                                <asp:TextBox ID="rtqty" runat="server" Text='<%# Eval("rtqty").ToString().Trim() %>' Width="90%" CssClass="rtqty Required Float"></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="单重">
                            <ItemTemplate>
                                <asp:TextBox ID="perWeight" runat="server" Text='<%# Eval("perWeight").ToString().Trim() %>' Width="90%" CssClass="perWeight Float"></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="总重">
                            <ItemTemplate>
                                <asp:TextBox ID="sumWeight" runat="server" Text='<%# Eval("sumWeight").ToString().Trim() %>' Width="90%" CssClass="sumWeight Float"></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="备注">
                            <ItemTemplate>
                                <asp:TextBox ID="remark" runat="server" Text='<%# Eval("remark").ToString().Trim() %>' Width="90%" CssClass=""></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
        </div>
    </form>
</body>
</html>
